package com.macro.mall.model;

import java.util.ArrayList;
import java.util.List;

public class PmProdSpecPrptyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PmProdSpecPrptyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdIsNull() {
            addCriterion("prod_spec_id is null");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdIsNotNull() {
            addCriterion("prod_spec_id is not null");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdEqualTo(Long value) {
            addCriterion("prod_spec_id =", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdNotEqualTo(Long value) {
            addCriterion("prod_spec_id <>", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdGreaterThan(Long value) {
            addCriterion("prod_spec_id >", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdGreaterThanOrEqualTo(Long value) {
            addCriterion("prod_spec_id >=", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdLessThan(Long value) {
            addCriterion("prod_spec_id <", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdLessThanOrEqualTo(Long value) {
            addCriterion("prod_spec_id <=", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdIn(List<Long> values) {
            addCriterion("prod_spec_id in", values, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdNotIn(List<Long> values) {
            addCriterion("prod_spec_id not in", values, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdBetween(Long value1, Long value2) {
            addCriterion("prod_spec_id between", value1, value2, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdNotBetween(Long value1, Long value2) {
            addCriterion("prod_spec_id not between", value1, value2, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdIsNull() {
            addCriterion("prpty_id is null");
            return (Criteria) this;
        }

        public Criteria andPrptyIdIsNotNull() {
            addCriterion("prpty_id is not null");
            return (Criteria) this;
        }

        public Criteria andPrptyIdEqualTo(Long value) {
            addCriterion("prpty_id =", value, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdNotEqualTo(Long value) {
            addCriterion("prpty_id <>", value, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdGreaterThan(Long value) {
            addCriterion("prpty_id >", value, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdGreaterThanOrEqualTo(Long value) {
            addCriterion("prpty_id >=", value, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdLessThan(Long value) {
            addCriterion("prpty_id <", value, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdLessThanOrEqualTo(Long value) {
            addCriterion("prpty_id <=", value, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdIn(List<Long> values) {
            addCriterion("prpty_id in", values, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdNotIn(List<Long> values) {
            addCriterion("prpty_id not in", values, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdBetween(Long value1, Long value2) {
            addCriterion("prpty_id between", value1, value2, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyIdNotBetween(Long value1, Long value2) {
            addCriterion("prpty_id not between", value1, value2, "prptyId");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeIsNull() {
            addCriterion("prpty_code is null");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeIsNotNull() {
            addCriterion("prpty_code is not null");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeEqualTo(String value) {
            addCriterion("prpty_code =", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeNotEqualTo(String value) {
            addCriterion("prpty_code <>", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeGreaterThan(String value) {
            addCriterion("prpty_code >", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeGreaterThanOrEqualTo(String value) {
            addCriterion("prpty_code >=", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeLessThan(String value) {
            addCriterion("prpty_code <", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeLessThanOrEqualTo(String value) {
            addCriterion("prpty_code <=", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeLike(String value) {
            addCriterion("prpty_code like", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeNotLike(String value) {
            addCriterion("prpty_code not like", value, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeIn(List<String> values) {
            addCriterion("prpty_code in", values, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeNotIn(List<String> values) {
            addCriterion("prpty_code not in", values, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeBetween(String value1, String value2) {
            addCriterion("prpty_code between", value1, value2, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyCodeNotBetween(String value1, String value2) {
            addCriterion("prpty_code not between", value1, value2, "prptyCode");
            return (Criteria) this;
        }

        public Criteria andPrptyNameIsNull() {
            addCriterion("prpty_name is null");
            return (Criteria) this;
        }

        public Criteria andPrptyNameIsNotNull() {
            addCriterion("prpty_name is not null");
            return (Criteria) this;
        }

        public Criteria andPrptyNameEqualTo(String value) {
            addCriterion("prpty_name =", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameNotEqualTo(String value) {
            addCriterion("prpty_name <>", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameGreaterThan(String value) {
            addCriterion("prpty_name >", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameGreaterThanOrEqualTo(String value) {
            addCriterion("prpty_name >=", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameLessThan(String value) {
            addCriterion("prpty_name <", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameLessThanOrEqualTo(String value) {
            addCriterion("prpty_name <=", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameLike(String value) {
            addCriterion("prpty_name like", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameNotLike(String value) {
            addCriterion("prpty_name not like", value, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameIn(List<String> values) {
            addCriterion("prpty_name in", values, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameNotIn(List<String> values) {
            addCriterion("prpty_name not in", values, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameBetween(String value1, String value2) {
            addCriterion("prpty_name between", value1, value2, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameNotBetween(String value1, String value2) {
            addCriterion("prpty_name not between", value1, value2, "prptyName");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowIsNull() {
            addCriterion("prpty_name_show is null");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowIsNotNull() {
            addCriterion("prpty_name_show is not null");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowEqualTo(String value) {
            addCriterion("prpty_name_show =", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowNotEqualTo(String value) {
            addCriterion("prpty_name_show <>", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowGreaterThan(String value) {
            addCriterion("prpty_name_show >", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowGreaterThanOrEqualTo(String value) {
            addCriterion("prpty_name_show >=", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowLessThan(String value) {
            addCriterion("prpty_name_show <", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowLessThanOrEqualTo(String value) {
            addCriterion("prpty_name_show <=", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowLike(String value) {
            addCriterion("prpty_name_show like", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowNotLike(String value) {
            addCriterion("prpty_name_show not like", value, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowIn(List<String> values) {
            addCriterion("prpty_name_show in", values, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowNotIn(List<String> values) {
            addCriterion("prpty_name_show not in", values, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowBetween(String value1, String value2) {
            addCriterion("prpty_name_show between", value1, value2, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyNameShowNotBetween(String value1, String value2) {
            addCriterion("prpty_name_show not between", value1, value2, "prptyNameShow");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeIsNull() {
            addCriterion("prpty_type is null");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeIsNotNull() {
            addCriterion("prpty_type is not null");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeEqualTo(String value) {
            addCriterion("prpty_type =", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeNotEqualTo(String value) {
            addCriterion("prpty_type <>", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeGreaterThan(String value) {
            addCriterion("prpty_type >", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeGreaterThanOrEqualTo(String value) {
            addCriterion("prpty_type >=", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeLessThan(String value) {
            addCriterion("prpty_type <", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeLessThanOrEqualTo(String value) {
            addCriterion("prpty_type <=", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeLike(String value) {
            addCriterion("prpty_type like", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeNotLike(String value) {
            addCriterion("prpty_type not like", value, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeIn(List<String> values) {
            addCriterion("prpty_type in", values, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeNotIn(List<String> values) {
            addCriterion("prpty_type not in", values, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeBetween(String value1, String value2) {
            addCriterion("prpty_type between", value1, value2, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyTypeNotBetween(String value1, String value2) {
            addCriterion("prpty_type not between", value1, value2, "prptyType");
            return (Criteria) this;
        }

        public Criteria andPrptyDescIsNull() {
            addCriterion("prpty_desc is null");
            return (Criteria) this;
        }

        public Criteria andPrptyDescIsNotNull() {
            addCriterion("prpty_desc is not null");
            return (Criteria) this;
        }

        public Criteria andPrptyDescEqualTo(String value) {
            addCriterion("prpty_desc =", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescNotEqualTo(String value) {
            addCriterion("prpty_desc <>", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescGreaterThan(String value) {
            addCriterion("prpty_desc >", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescGreaterThanOrEqualTo(String value) {
            addCriterion("prpty_desc >=", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescLessThan(String value) {
            addCriterion("prpty_desc <", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescLessThanOrEqualTo(String value) {
            addCriterion("prpty_desc <=", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescLike(String value) {
            addCriterion("prpty_desc like", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescNotLike(String value) {
            addCriterion("prpty_desc not like", value, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescIn(List<String> values) {
            addCriterion("prpty_desc in", values, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescNotIn(List<String> values) {
            addCriterion("prpty_desc not in", values, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescBetween(String value1, String value2) {
            addCriterion("prpty_desc between", value1, value2, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptyDescNotBetween(String value1, String value2) {
            addCriterion("prpty_desc not between", value1, value2, "prptyDesc");
            return (Criteria) this;
        }

        public Criteria andPrptySeqIsNull() {
            addCriterion("prpty_seq is null");
            return (Criteria) this;
        }

        public Criteria andPrptySeqIsNotNull() {
            addCriterion("prpty_seq is not null");
            return (Criteria) this;
        }

        public Criteria andPrptySeqEqualTo(Integer value) {
            addCriterion("prpty_seq =", value, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqNotEqualTo(Integer value) {
            addCriterion("prpty_seq <>", value, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqGreaterThan(Integer value) {
            addCriterion("prpty_seq >", value, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqGreaterThanOrEqualTo(Integer value) {
            addCriterion("prpty_seq >=", value, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqLessThan(Integer value) {
            addCriterion("prpty_seq <", value, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqLessThanOrEqualTo(Integer value) {
            addCriterion("prpty_seq <=", value, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqIn(List<Integer> values) {
            addCriterion("prpty_seq in", values, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqNotIn(List<Integer> values) {
            addCriterion("prpty_seq not in", values, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqBetween(Integer value1, Integer value2) {
            addCriterion("prpty_seq between", value1, value2, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andPrptySeqNotBetween(Integer value1, Integer value2) {
            addCriterion("prpty_seq not between", value1, value2, "prptySeq");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNull() {
            addCriterion("category is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNotNull() {
            addCriterion("category is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryEqualTo(Integer value) {
            addCriterion("category =", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotEqualTo(Integer value) {
            addCriterion("category <>", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThan(Integer value) {
            addCriterion("category >", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("category >=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThan(Integer value) {
            addCriterion("category <", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThanOrEqualTo(Integer value) {
            addCriterion("category <=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryIn(List<Integer> values) {
            addCriterion("category in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotIn(List<Integer> values) {
            addCriterion("category not in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryBetween(Integer value1, Integer value2) {
            addCriterion("category between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotBetween(Integer value1, Integer value2) {
            addCriterion("category not between", value1, value2, "category");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}